<template>
  <!-- <div class="app-container"> -->
  <div>
    <!--建筑物确定评估地图模块-->
    <Index v-if="showBool" :dataType="dataType" :form="form"></Index>
  </div>
</template>

<script setup name="buildingConfirmPersonCasualtiesMap">
//地图
import Index from '@/map/building/confirm/index.vue';

const route = useRoute();
//人员伤亡-确定评估
const dataType = ref("personCasualtiesEd");//人员伤亡-确定评估
const form = ref({});
const showBool = ref(false);
const props = defineProps({
  params: Object
})

onMounted(() => {
  // dataType.value = route.query.type;
  // form.value = {
  //   assessCode:route.query.assessCode,
  //   seismicInputMode:route.query.seismicInputMode,
  //   condition:route.query.condition,
  //   casualties:route.query.casualties,
  //   time:route.query.time,
  // };
})
watch(() => props.params, () => {
  const { type, id, assessCode, seismicInputMode, condition, casualties, time,coordinateRange,influenceFieldVersion } = props.params;
  dataType.value = type;
  form.value = {
    assessCode,
    seismicInputMode,
    condition,
    casualties,influenceFieldVersion,
    coordinateRange: coordinateRange,
    time,
    id
  };
  showBool.value = true;
}, {immediate: true, deep: true})
</script>

<style scoped lang="scss">

</style>